package cn.csc.module.system.api.oauth2.dto;

import cn.csc.framework.common.enums.UserTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * @author liuchuang
 * @version 1.0
 * @date 2024/1/11 16:21
 * @modify
 */
/**
 * OAuth2 访问令牌的过期时间更新返回
 * {@link UserTypeEnum}
 * @author liuchuang
 * @version 1.0
 * @date 2024/1/11 16:21
 * @modify
 */
@ApiModel("RPC 服务 - OAuth2 访问令牌的过期时间更新 Response DTO")
@Data
@Accessors(chain = true)
public class OAuth2AccessTokenUpdateRespDTO {

    @ApiModelProperty(value = "访问令牌有效时间DB更新成功标志", required = true, example = "43200")
    private Boolean accessTokenUpdateFlag;

    @ApiModelProperty(value = "访问令牌有效时间redis更新成功标志", required = true, example = "43200")
    private Boolean accessTokenExpireFlag;

    @ApiModelProperty(value = "刷新令牌有效时间DB更新成功标志", required = true, example = "86400")
    private Boolean refreshTokenUpdateFlag;

}
